package MTT::Schema::Result::AlarmProp;

# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

use strict;
use warnings;

use Moose;
use MooseX::NonMoose;
use namespace::autoclean;
extends 'DBIx::Class::Core';

__PACKAGE__->load_components("InflateColumn::DateTime", "EncodedColumn");

=head1 NAME

MTT::Schema::Result::AlarmProp

=cut

__PACKAGE__->table("alarm_props");

=head1 ACCESSORS

=head2 id_alarm

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 0

=head2 prop

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 42

=head2 value

  data_type: 'varchar'
  is_nullable: 1
  size: 1024

=cut

__PACKAGE__->add_columns(
  "id_alarm",
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
  "prop",
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 42 },
  "value",
  { data_type => "varchar", is_nullable => 1, size => 1024 },
);
__PACKAGE__->set_primary_key("id_alarm", "prop");

=head1 RELATIONS

=head2 id_alarm

Type: belongs_to

Related object: L<MTT::Schema::Result::Alarm>

=cut

__PACKAGE__->belongs_to(
  "id_alarm",
  "MTT::Schema::Result::Alarm",
  { id => "id_alarm" },
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2011-01-23 22:33:08
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QdS3f4HK6kIPw77IJdyABw


# You can replace this text with custom content, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
